package com.ruoyi.flow.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程定义对象 bus_bpmn_info
 *
 * @author ruoyi
 * @date 2023-10-26
 */
public class BusBpmnInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id主键，唯一标识
     */
    private Long id;

    /**
     * 流程名称
     */
    @Excel(name = "流程名称 ")
    private String bpmnLabel;

    /**
     * 流程类型
     */
    @Excel(name = "流程类型")
    private int bpmnType;

    /**
     * 流程定义生成的key
     */
    @Excel(name = "流程定义生成的key")
    private String processDefinitionKey;

    /**
     * 部署时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @Excel(name = "部署时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date depolyTime;

    /**
     * 版本
     */
    @Excel(name = "版本")
    private Long version;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String info;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBpmnLabel(String bpmnLabel) {
        this.bpmnLabel = bpmnLabel;
    }

    public String getBpmnLabel() {
        return bpmnLabel;
    }

    public void setBpmnType(int bpmnType) {
        this.bpmnType = bpmnType;
    }

    public int getBpmnType() {
        return bpmnType;
    }

    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }

    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }

    public void setDepolyTime(Date depolyTime) {
        this.depolyTime = depolyTime;
    }

    public Date getDepolyTime() {
        return depolyTime;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getVersion() {
        return version;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("bpmnLabel", getBpmnLabel()).append("bpmnType", getBpmnType()).append("processDefinitionKey", getProcessDefinitionKey()).append("depolyTime", getDepolyTime()).append("version", getVersion()).append("info", getInfo()).toString();
    }
}
